package routers

import (
	"gitee.com/zjlsliupei/gweb"
	"github.com/gin-gonic/gin"
	"skeleton/controllers"
)

func init() {
	gweb.RegistryRoute(func(app *gin.RouterGroup) {
		task := app.Group("/demo")
		{
			task.POST("/add", controllers.DemoAdd)
			task.POST("/update", controllers.DemoUpdate)
			task.POST("/del", controllers.DemoDel)
			task.POST("/get", controllers.DemoGet)
			task.POST("/list", controllers.DemoList)
		}
	})
}
